﻿using Factory;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class B_Address : IAddress
    {
        public void Add(Address item)
        {
            CreateFactory.GetAddress().Add(item);
        }

        public void Delete(int id)
        {
            CreateFactory.GetAddress().Delete(id);
        }

        public Address FindById(int id)
        {
           return CreateFactory.GetAddress().FindById(id);
        }

        public List<Address> GetAll()
        {
            return CreateFactory.GetAddress().GetAll();
        }

        public void Updata(int id, Address item)
        {
            CreateFactory.GetAddress().Updata(id, item);
        }
    }
}
